package cn.acyou.leo.product.dto.so;

import cn.acyou.leo.framework.annotation.valid.BaseValid;
import cn.acyou.leo.framework.annotation.valid.EnhanceValid;
import cn.acyou.leo.framework.model.PageSo;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author fangyou
 * @version [1.0.0, 2021-08-03 15:50]
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StudentSo extends PageSo {

    @BaseValid(notEmpty = true, message = "姓名不能为空！")
    private String	name;

    @EnhanceValid({
            @BaseValid(notNull = true, message = "年龄不能为空！"),
            @BaseValid(min = 0, message = "年龄不能小于0岁！"),
            @BaseValid(max = 200, message = "年龄不能大于200岁！")
    })
    private Integer age;
}
